﻿using Furion.DataValidation;

using System.Text.RegularExpressions;

namespace ECO.Admin.Core.Shared.Enum.System
{

    [ValidationType]
    public enum CustomValidationTypes
    {
        /// <summary>
        /// 强密码类型
        /// </summary>
        [ValidationItemMetadata(@"^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_!@#$%^&*`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\W_!@#$%^&*`~()-+=]+$)(?![0-9\W_!@#$%^&*`~()-+=]+$)[a-zA-Z0-9\W_!@#$%^&*`~()-+=]", "必须大写字母，小写字母，数字，特殊符号 `@#$%^&*`~()-+=` 中任意3项密码")]
        StrongPassword,

        /// <summary>
        /// 以 Furion 字符串开头，忽略大小写
        /// </summary>
        [ValidationItemMetadata(@"^(furion).*", "默认提示：必须以Fur字符串开头，忽略大小写", RegexOptions.IgnoreCase)]
        StartWithFurString
    }

}
